package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author zhangyu
 * @date 2019/2/26
 */
public class ClassificationBean implements Parcelable {
    private String name;
    private int id;
    private int count;
    private int unSolveCount;

    public ClassificationBean(String name, int id, int count, int unSolveCount) {
        this.name = name;
        this.id = id;
        this.count = count;
        this.unSolveCount = unSolveCount;
    }

    public ClassificationBean(String name, int id, int count) {
        this.name = name;
        this.id = id;
        this.count = count;
    }

    public ClassificationBean(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public int getUnSolveCount() {
        return unSolveCount;
    }

    public void setUnSolveCount(int unSolveCount) {
        this.unSolveCount = unSolveCount;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ClassificationBean() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeInt(this.id);
        dest.writeInt(this.count);
    }

    protected ClassificationBean(Parcel in) {
        this.name = in.readString();
        this.id = in.readInt();
        this.count = in.readInt();
    }

    public static final Parcelable.Creator<ClassificationBean> CREATOR = new Parcelable.Creator<ClassificationBean>() {
        @Override
        public ClassificationBean createFromParcel(Parcel source) {
            return new ClassificationBean(source);
        }

        @Override
        public ClassificationBean[] newArray(int size) {
            return new ClassificationBean[size];
        }
    };
}
